package com.edu.orderservice;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * @ClassName OrderApplication
 * @date 2022/9/26 8:54
 * @Version 1.0
 */
@EnableDiscoveryClient //开启nacos
@SpringBootApplication
@ComponentScan("com.edu")
@MapperScan("com.edu.orderservice.mapper")
@EnableFeignClients//开启openfeign
public class OrderApplication {
    //启动
    public static void main(String[] args) {
        SpringApplication.run(OrderApplication.class,args);
    }

}
